<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="weather">
			<p id="now_wt"></p>
		</div>
		<script src="jquery.js" type="text/javascript" charset="utf-8"></script>	
		<script type="text/javascript">
			$(function(){
				$.ajax({
					url:'https://devapi.qweather.com/v7/weather/now?location=101010100&key=39bcfeeebb764c70ade129c2f821290b',
					method: 'get',
					success: function(res){
						var status = res.code
						var scene = res.now.text

						// console.log(scene);
						if(status === '200'){
							$('#now_wt').html(scene);
						}else{
							alert('error')
						}

					}
				})
				
				
			})
			
		</script>
	</body>
</html>
